import {
  request
} from '../utils/request'


export const userLoginPassword = (data) => {
  return request(
    'POST',
    '/user/user/web/login',
    data
  )
}

export const userLoginCode= (data) => {
  return request(
    'POST',
    '/user/user/web/registerLogin',
    data
  )
}

// type: 2 修改密码
export const getLoginCode = (data) => {
  return request(
    'GET',
    '/user/user/web/getCheckCode',
    data
  )
}

export const userLogout = (data) => {
  return request(
    'POST',
    '/user/user/web/logout',
    data,
  )
}



export const getVerifyCode = (params) => {
  return request(
    'GET',
    '/gen/getVerifyCode',
    params,
    'file'
  )
}



export const checkImgCode = (params) => {
  return request(
    'GET',
    '/gen/check/digital/code',
    params
  )
}